﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lion.WeiXin.Core.Models
{
   public  class ProductModel :BaseModel
    {
       public ProductModel() {
           this.Last_Update_Date = DateTime.Now;
       }

        private string _code;
        private string _name;
        private string _image;
        private string _remark;
        private decimal  _price;
        private int  _dic_producttype;
      
        /// <summary>
        /// 
        /// </summary>
        public string Code
        {
            set { _code = value; }
            get { return _code; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Name
        {
            set { _name = value; }
            get { return _name; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Image
        {
            set { _image = value; }
            get { return _image; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Remark
        {
            set { _remark = value; }
            get { return _remark; }
        }
        /// <summary>
        /// 原价
        /// </summary>
        public decimal  Price
        {
            set { _price = value; }
            get { return _price; }
        }

        /// <summary>
        /// 折扣
        /// </summary>
        public decimal Discount {get;set;}
       
        /// <summary>
        /// 现价
        /// </summary>
        public decimal Current_Price {get;set;}
       
        /// <summary>
        /// 库存数量
        /// </summary>
        public int Quantity {get;set;}      

        /// <summary>
        /// 
        /// </summary>
        public int  Dic_ProductType
        {
            set { _dic_producttype = value; }
            get { return _dic_producttype; }
        }

        public DateTime Last_Update_Date { get; set; }

        /// <summary>
        /// 是否推荐商品
        /// </summary>
        public int IsRecommend { get; set; }
       
        /// <summary>
        /// 销量排序
        /// </summary>
        public int Sale_Sort { get; set; }
        
        /// <summary>
        /// 真实销量
        /// </summary>
        public int Sale { get; set; }
       

        /// <summary>
        /// 产品类型名称
        /// </summary>
        public string ProductType {get;set;}


       /// <summary>
       /// Vip 会员价 ，近作界面显示用
       /// </summary>
        public decimal VipPrice { get; set; }
       /// <summary>
       /// 是否vip用户显示
       /// </summary>
        public bool IsVip { get; set; }
      
    }
}
